<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var dx={
        'name':'马鸿运',
        'age':18,
        'sex':'男',
        'g':{
            'gc':'鸿运齐天蛊'
        }
    }
    for(var g in dx){
        console.log(g);
        console.log(dx[g]);
    }
</script>